package com.example.yoga.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liwenkai
 * @since 2021-03-11
 */
@TableName("course_price")
public class CoursePrice extends Model<CoursePrice> {

    private static final long serialVersionUID = 1L;

    /**
     * 课程id
     */
    @TableId("courseId")
    private Integer courseid;

    /**
     * 课程价格
     */
    @TableField("coursePrice")
    private Double courseprice;


    public Integer getCourseid() {
        return courseid;
    }

    public void setCourseid(Integer courseid) {
        this.courseid = courseid;
    }

    public Double getCourseprice() {
        return courseprice;
    }

    public void setCourseprice(Double courseprice) {
        this.courseprice = courseprice;
    }

    @Override
    protected Serializable pkVal() {
        return this.courseid;
    }

    @Override
    public String toString() {
        return "CoursePrice{" +
        "courseid=" + courseid +
        ", courseprice=" + courseprice +
        "}";
    }
}
